package com.lovo.redis.dao;


import com.lovo.redis.entity.TicketEntity;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface ITicketDao extends CrudRepository<TicketEntity,Long> {
  @Query("from  TicketEntity where movieName=?1 and price>?2")
   public List<TicketEntity> findAllByMovieNameAndPrice(String movieName,float price);
}

